package com.lagou.edu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.time.LocalDate;

/**
 * @ClassName: IndexController
 * @Auther: Jerry
 * @Date: 2020/7/22 17:07
 * @Desctiption: TODO
 * @Version: 1.0
 */
@Controller
public class IndexController {

    @RequestMapping("/toLoginPage")
    public String toLoginPage(Model model){
        model.addAttribute("currentYear", LocalDate.now().getYear());
        return "login";
    }
}
